﻿namespace Sidvall.WorkItemManager.Net.Services.V1
{
	public partial class Schedule
	{
		#region Public Members

		#region GetNextExecutionTime

		public System.DateTime? GetNextExecutionTime(System.DateTime time, System.DateTime? lastExecutionTime)
		{
			return Sidvall.WorkItemManager.SystemContextConfig.Current.EntityFacade.ScheduleManager.GetNextExecutionTime(this, time, lastExecutionTime);
		}

		#endregion
		#region IsExecutionTime

		public bool IsExecutionTime(System.DateTime time, System.DateTime? lastExecutionTime)
		{
			return Sidvall.WorkItemManager.SystemContextConfig.Current.EntityFacade.ScheduleManager.IsExecutionTime(this, time, lastExecutionTime);
		}

		#endregion

		#endregion
	}
}